package shellstation;

import javax.swing.*;
import javax.swing.event.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.JFrame;

public class ViewProductView extends JFrame {

    private JFrame frame;

    private JPanel panel;
    private JPanel panel2;
    private JButton submit;

    private JLabel line;
    private JLabel productName;
    private JLabel productDesc;
    private JLabel productSize;
    private JLabel productPrice;
    private JLabel productStock;

    private JTextField pName;
    private JTextField pDesc;
    private JTextField pSize;
    private JTextField pPrice;
    private JTextField pStock;

    private Icon shellIcon;
    private JLabel shellLabel;

    private JComboBox box;
    private JLabel name;
    private static String[] filename = {"Advance 2T", "Helix HX 5", "Rimula R3 X",
    "Spirax S2 G 90", "Retinax EP2/HD3", "Coolguard", "D'Water"};

    public void ViewProductView() {

        setLayout(new FlowLayout());

        box = new JComboBox(filename);
        box.setBounds(50, 20, 100, 20);

        shellIcon = new ImageIcon(getClass().getResource("image/shell.gif"));
        shellLabel = new JLabel();
        shellLabel.setIcon(shellIcon);
        shellLabel.setBounds(550, 230, 150, 150);

        productDesc = new JLabel("Product Description: It is a diesel type of oil");
        productDesc.setBounds(50, 40, 500, 25 );
        productDesc.setFont(new Font("Hobo Std", Font.BOLD, 15));

        productSize = new JLabel("Size: M");
        productSize.setBounds(50, 70, 200, 25 );
        productSize.setFont(new Font("Hobo Std", Font.BOLD, 15));

        productPrice = new JLabel("Price: 210.00");
        productPrice.setBounds(50, 100, 200, 25 );
        productPrice.setFont(new Font("Hobo Std", Font.BOLD, 15));

        productStock = new JLabel("Stock: 20");
        productStock.setBounds(50, 130, 200, 25);
        productStock.setFont(new Font("Hobo Std", Font.BOLD, 15));

    }

    public JComboBox getbox(){
        return box;
    }
    public JLabel getProductDesc(){
        return productDesc;
    }

    public JLabel getProductSize(){
        return productSize;
    }

    public JLabel getProductPrice(){
        return productPrice;
    }

    public JLabel getProductStock(){
        return productStock;
    }

    public JTextField getpDesc(){
        return pDesc;
    }

    public JTextField getpSize(){
        return pSize;
    }

    public JTextField getpPrice(){
        return pPrice;
    }

    public JTextField getpStock(){
        return pStock;
    }

}
